<template>
  <view>
    <!-- 搜索 -->
    <view class="search-view">
      <search @search="gotoSearchPage"></search>
    </view>
    <!-- 轮播图 -->
    <homeswiper></homeswiper>
    <!-- 分类导航 -->
    <homenav></homenav>
    <!-- 楼层区域 -->
    <homefloor></homefloor>
  </view>
</template>

<script>
  import search from '@/components/cate/cate-top-search/cate-top-search.vue'
  import homeswiper from '@/components/home/home-swiper/home-swiper.vue'
  import homenav from '@/components/home/home-nav/home-nav.vue'
  import homefloor from '@/components/home/home-floor/home-floor.vue'
  export default {
    components: {
    	homeswiper,
      homenav,
      homefloor,
      search
    },
    data() {
      return {
      };
    },
    methods: {
      gotoSearchPage() {
        uni.navigateTo({
          url: '/subpkg_goods/search/search'
        })
      }
    },
  }
</script>

<style lang="scss" scoped>
.search-view {
  position: sticky;
  top: 0;
  z-index: 999;
}
</style>
